//
//  BluetoothDataModel.m
//  FRQBluetoothKit_Example
//
//  Created by admin on 2023/11/24.
//  Copyright © 2023 xuchunhai. All rights reserved.
//

#import "BluetoothDataModel.h"

@implementation BluetoothDataModel
+(NSData *)bltVerify{
    NSMutableData *data=[NSMutableData new];
    
    //帧头
    Byte SerialNumber[2]={0x5A,0xA5};
    //指令
    Byte order[1]={0x04};
    //验证码
    Byte VerifyCode[2]={0x5A,0xA5};
    //校验码
    Byte CheckCode[1]={0xFE};
    
    [data appendBytes:SerialNumber length:2];
    [data appendBytes:order length:1];
    [data appendBytes:VerifyCode length:2];
    [data appendBytes:CheckCode length:1];
    NSLog(@"设置结果%@",data);
    NSString *strData=[SkProtocolData dataToString:data];
    return [SkProtocolData stringToData:strData];
}
@end
